﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="TroubleList.aspx.cs" Inherits="ITOMMS.Web.TroubleManage.TroubleList" %>

<%@ Register Src="../Control/HeadControl.ascx" TagName="HeadControl" TagPrefix="uc4" %>
<%@ Register Src="../Control/FootControl.ascx" TagName="FootControl" TagPrefix="uc3" %>
<%@ Register Src="../Control/leftMenuControl.ascx" TagName="leftMenuControl" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>故障列表</title>
    <link href="../css/AspNetPager.css" rel="stylesheet" type="text/css" />
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />

    <script type="text/javascript" src="../js/ymPrompt.js"></script>
    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
</head> 
<body>
     <form id="form1" runat="server">
        <div id="message" style="background-color: Red">
        </div>
        <table class="tblDataArea" width="100%">
            <tr class="tblDataCaption">
                <td align="left" colspan="6">
                    <div style="width: 210px;" class="title">
                        <img src="../images/lv3.gif" style="margin-bottom: -3px;" /><asp:Label ID="lblClassName"
                            runat="server">故障单列表</asp:Label></div>
                </td>
                <td align="left">
                </td>
            </tr>
            <tr>
                 <td class="tdQueryCaption">
                        客户名称：</td>
                    <td class="tdQueryField">
                        <asp:DropDownList ID="ddlCompayName" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                            onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                            onmousemove="this.className='input_move'" onmouseout="this.className='input_out'">
                        </asp:DropDownList></td>
                    <td class="tdQueryCaption">
                        申报时间：</td>
                    <td class="tdQueryField">
                        <asp:TextBox ID="txtRequestTime_Bgn" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'});"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox>-
                             <asp:TextBox ID="txtRequestTime_End" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'});"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox>
                    </td>
                    <td class="tdQueryCaption">
                        </td>
                    <td class="tdQueryField">
                        </td>
                    <td class="tdQueryField">
                        <asp:Button ID="btnQuery" runat="server" CssClass="cssUICommandButton" Text="查询"
                            OnClick="btnQuery_Click" /></td>
            </tr>
        </table>
        <table class="tblDataArea" width="100%">
            <tr>
                <td class="tdQueryCaption" colspan="7" style="height: 348px; vertical-align: top;">
                    <asp:GridView ID="dgdaoim_sus_plyedr" Width="100%" runat="server" PageSize="25" AllowSorting="True"
                        HorizontalAlign="Center" AllowPaging="False" AutoGenerateColumns="False" CssClass="cssDataGrid" OnRowDataBound="dgdaoim_sus_plyedr_RowDataBound" OnRowCommand="dgdaoim_sus_plyedr_RowCommand">
                        <FooterStyle CssClass="cssDataGridFooter"></FooterStyle>
                        <SelectedRowStyle CssClass="cssDataGridSelectedItem"></SelectedRowStyle>
                        <EditRowStyle CssClass="cssDataGridEditItem"></EditRowStyle>
                        <AlternatingRowStyle CssClass="cssDataGridAlternatingItem"></AlternatingRowStyle>
                        <RowStyle CssClass="cssDataGridItem"></RowStyle>
                        <HeaderStyle ForeColor="#CCFFFF" CssClass="cssDataGridHeader"></HeaderStyle>
                        <Columns>
                                <asp:BoundField DataField="SEQNO" HeaderText="序号" />
                                <asp:BoundField DataField="TroubleNo" HeaderText="编号" />

                                <asp:BoundField DataField="State" HeaderText="处理状态" />
                                                              
                                 <asp:TemplateField HeaderText="服务标题">                              
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server"><%# Watson.Core.Tools.FormatValue.InterceptString(Eval("ShortServiceName").ToString(), 10)%></asp:Label>
                                    </ItemTemplate>
                                 </asp:TemplateField>                                
                                
                                <asp:BoundField DataField="CompanyName" HeaderText="客户名称" />
                                <asp:BoundField DataField="RequestTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HeaderText="申报时间" />
                                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../TroubleManage/TroubleShow.aspx?id={0}"
                                    HeaderText="查看" Text="查看" />
                                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../TroubleManage/TroubleAdd.aspx?id={0}"
                                    HeaderText="编辑" Text="编辑" />
                                      <asp:TemplateField HeaderText="删除">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="del" OnClientClick="javascript:return confirm('你确认要删除吗?');" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'>删除</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <div id="AspNetPager">
            <webdiyer:AspNetPager CssClass="paginator" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PrevPageText="前页"
                OnPageChanged="AspNetPager1_PageChanged" PageSize="25">
            </webdiyer:AspNetPager>
        </div>
    </form>
</body>
</html>
    